﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SIM.Geo.BE;
using SIM.Geo.BL;

namespace SIM.Geo.SE
{
    public class SEMineral : ISEMineral
    {
        #region ISEMineral Members

        public List<Mineral> ListarMineral()
        {
            try
            {
                return new BLMineral().ListarMineral();
            }
            catch (Exception)
            {

                throw;
            }
        }

        public int InsertarMineral(Mineral mineral)
        {
            try
            {
                return new BLMineral().InsertarMineral(mineral);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public void ModificarMineral(Mineral mineral)
        {
            new BLMineral().ModificarMineral(mineral);
        }

        public void EliminarMineral(int codigoMineral)
        {
            try
            {
                new BLMineral().EliminarMineral(codigoMineral);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public List<Mineral> BuscarMineral(string descripcion)
        {
            try
            {
                return new BLMineral().BuscarMineral(descripcion);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public Mineral ObtenerMineral(int codigoMineral)
        {
            try
            {
                return new BLMineral().ObtenerMineral(codigoMineral);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public List<ListItemInt> ObtenerListItem()
        {
            try
            {
                return new BLMineral().ObtenerListItem();
            }
            catch (Exception)
            {

                throw;
            }
        }

        #endregion
    }
}